text: Remove useless gtk_widget_get_allocation call
authorTimm Bäder <mail@baedert.org>
Sat, 13 Apr 2019 04:26:27 +0000 (06:26 +0200)
committerTimm Bäder <mail@baedert.org>
Sat, 13 Apr 2019 04:26:27 +0000 (06:26 +0200)
gtk/gtktext.c

index be87cb1fbe34eed1606a674c6b63cb0e93816019..60aa6e7c55e7a5b33fd98fd59e3a1beefc5cad57 100644 (file)
@@ -2646,7 +2646,6 @@ gtk_text_show_magnifier (GtkText *self,
                          int      y)
 {
   GtkTextPrivate *priv = gtk_text_get_instance_private (self);
-  GtkAllocation allocation;
   cairo_rectangle_int_t rect;
   GtkAllocation text_allocation;
 
@@ -2654,8 +2653,6 @@ gtk_text_show_magnifier (GtkText *self,
 
   gtk_text_ensure_magnifier (self);
 
-  gtk_widget_get_allocation (GTK_WIDGET (self), &allocation);
-
   rect.x = x + text_allocation.x;
   rect.width = 1;
   rect.y = text_allocation.y;